<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>


    <script>
        //Math


        //1.获取圆周率
        // console.log(Math.PI)
        //2.Math.round();
        // console.log(Math.round(3.5)) //4

        //3.Math.ceil()
        // console.log(Math.ceil(3.5)) //4

        //4.Math.floor()
        // console.log(Math.floor(3.5)) //3

        //5.Math.random()
        // console.log(Math.random())
        //6.Math.pow()
        // console.log(Math.pow(2, 3)) //8

        //7.Math.abs()
        console.log(Math.abs(-19)) //19
    </script>


</body>

</html>